From: Ray Strode Date: Wed, 14 Jun 2017 14:05:36 +0000 (-0400) Subject: authPrompt: allow empty response to PAM messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~276 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a782de6e060bdcafc8c8f2e3c0a1a3b5991b709b;p=gnome-shell.git authPrompt: allow empty response to PAM messages Some PAM modules say "Press enter to continue" or whatever. We need to support them. This commit allows empty responses to PAM questions, but still requires a non-empty response for username. https://bugzilla.gnome.org/show_bug.cgi?id=784360 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 33bacff58..4b2509ad7 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -188,7 +188,7 @@ const AuthPrompt = new Lang.Class({ if (!this._userVerifier.hasPendingMessages) this._fadeOutMessage(); - this._updateNextButtonSensitivity(this._entry.text.length > 0); + this._updateNextButtonSensitivity(this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING); })); this._entry.clutter_text.connect('activate', Lang.bind(this, function() { if (this.nextButton.reactive) @@ -416,7 +416,7 @@ const AuthPrompt = new Lang.Class({ }, updateSensitivity: function(sensitive) { - this._updateNextButtonSensitivity(sensitive && this._entry.text.length > 0); + this._updateNextButtonSensitivity(sensitive && (this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING)); this._entry.reactive = sensitive; this._entry.clutter_text.editable = sensitive; },